export default function getAreaChart(optionSet = []) {

  const option = {
    xAxis: {
      type: 'category',
      boundaryGap: false,
      data: optionSet.map(item => item.name)
    },
    yAxis: {
      type: 'value'
    },
    series: [
      {
        data: optionSet.map(item => item.value),
        type: 'line',
        areaStyle: {}
      }
    ]
  };

  return option;
}
